Skip to content

feat: Use new IAlternativeLoginProvider when available#1413

Merged
CarlSchwan merged 3 commits intomainfrom
carl/alternative-login-provider
Apr 15, 2026
Merged

feat: Use new IAlternativeLoginProvider when available#1413
CarlSchwan merged 3 commits intomainfrom
carl/alternative-login-provider

Conversation

@CarlSchwan
Copy link
Copy Markdown
Member

@CarlSchwan CarlSchwan commented Apr 14, 2026

@CarlSchwan CarlSchwan requested review from come-nc and julien-nc April 14, 2026 14:15
@CarlSchwan CarlSchwan self-assigned this Apr 14, 2026
@CarlSchwan CarlSchwan force-pushed the carl/alternative-login-provider branch 2 times, most recently from f853751 to 4177baa Compare April 14, 2026 14:24
Signed-off-by: Carl Schwan <carlschwan@kde.org>
@CarlSchwan CarlSchwan force-pushed the carl/alternative-login-provider branch from 4177baa to 77c2867 Compare April 14, 2026 14:27
Copy link
Copy Markdown
Contributor

@artonge artonge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Request for a comment, else, looks good

$providers = $this->getCachedProviders($providerMapper);
$customLoginLabel = $config->getSystemValue('user_oidc', [])['login_label'] ?? '';
foreach ($providers as $provider) {
// FIXME: Move to IAlternativeLogin but requires boot due to db connection
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would add a comment stating that we can remove it once we drop support for NC33 or bellow.

…rename getAlternativeLogin to getAlternativeLogins

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
…tiveLogin is used

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
@julien-nc julien-nc force-pushed the carl/alternative-login-provider branch from 1fbd299 to 7e38ede Compare April 15, 2026 10:37
Copy link
Copy Markdown
Member

@julien-nc julien-nc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! No more hacks needed to register multiple ones with IAlternativeLogin! 💙

@CarlSchwan CarlSchwan merged commit a84c1ab into main Apr 15, 2026
45 checks passed
@CarlSchwan CarlSchwan deleted the carl/alternative-login-provider branch April 15, 2026 10:43
@julien-nc julien-nc mentioned this pull request Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants